package com.uinnova.springboot.demo.mongodb.dao;

import com.uinnova.springboot.demo.mongodb.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author 张攀钦
 * @date 2018-12-25-23:44
 * ${DES}
 */
@Repository
public interface UserMongo extends MongoRepository<User, String> {

    User findFirstByName(String name);

    User findUserFromName(String name);
}
